package com.iflytek.jobs.service.service.impl;

import com.iflytek.jobs.service.domain.ResumeLog;
import com.iflytek.jobs.service.mapper.ResumeLogMapper;
import com.iflytek.jobs.service.service.IResumeLogService;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 简历修改记录Service业务层处理
 * 
 * @author chenhs
 * @date 2023-04-17
 */
@Service
public class ResumeLogServiceImpl implements IResumeLogService
{
    @Autowired
    private ResumeLogMapper bizResumeLogMapper;

    /**
     * 查询简历修改记录
     * 
     * @param rlId 简历修改记录主键
     * @return 简历修改记录
     */
    @Override
    public ResumeLog selectResumeLogByRlId(Long rlId)
    {
        return bizResumeLogMapper.selectResumeLogByRlId(rlId);
    }

    /**
     * 查询简历修改记录列表
     * 
     * @param bizResumeLog 简历修改记录
     * @return 简历修改记录
     */
    @Override
    public List<ResumeLog> selectResumeLogList(ResumeLog bizResumeLog)
    {
        return bizResumeLogMapper.selectResumeLogList(bizResumeLog);
    }

    /**
     * 新增简历修改记录
     * 
     * @param bizResumeLog 简历修改记录
     * @return 结果
     */
    @Override
    public int insertResumeLog(ResumeLog bizResumeLog)
    {
        bizResumeLog.setCreateTime(DateUtils.getNowDate());
        return bizResumeLogMapper.insertResumeLog(bizResumeLog);
    }

    /**
     * 修改简历修改记录
     * 
     * @param bizResumeLog 简历修改记录
     * @return 结果
     */
    @Override
    public int updateResumeLog(ResumeLog bizResumeLog)
    {
        bizResumeLog.setUpdateTime(DateUtils.getNowDate());
        return bizResumeLogMapper.updateResumeLog(bizResumeLog);
    }

    /**
     * 批量删除简历修改记录
     * 
     * @param rlIds 需要删除的简历修改记录主键
     * @return 结果
     */
    @Override
    public int deleteResumeLogByRlIds(Long[] rlIds)
    {
        return bizResumeLogMapper.deleteResumeLogByRlIds(rlIds);
    }

    /**
     * 删除简历修改记录信息
     * 
     * @param rlId 简历修改记录主键
     * @return 结果
     */
    @Override
    public int deleteResumeLogByRlId(Long rlId)
    {
        return bizResumeLogMapper.deleteResumeLogByRlId(rlId);
    }
}
